package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.ShiftClassDto;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface ShiftClassClient {

    /**
     * 查询等级信息列表
     */
    @GetMapping("/shiftClass/info/list")
    public TableDataInfo list(ShiftClassDto shiftClass);

    /**
     * 新增油品
     */
    @PostMapping("/shiftClass/info")
    public AjaxResult add(@RequestBody ShiftClassDto shiftClass);


    /**
     * 获取等级信息详细信息
     */
    @GetMapping(value = "/shiftClass/info/{shiftClassId}")
    public AjaxResult getInfo(@PathVariable("shiftClassId") Long shiftClassId);

    /**
     * 修改油站信息
     */
    @PutMapping("/shiftClass/info")
    public AjaxResult edit(@RequestBody ShiftClassDto shiftClass) ;
}
